package top.yuechenc.manage.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**商品属性实体类
 * @author wangzhiwei
 */
@ApiModel(value = "attribute 对象", description = "商品属性对象 Attribute")
@Table(name = "sp_attribute")
public class SpAttribute {
    /**
     * 主键id
     */
    @ApiModelProperty(value = "属性编号", name = "attrId")
    @Id
    @Column(name = "attr_id")
    private String attrId;

    /**
     * 属性名称
     */

    @ApiModelProperty(value = "属性名称", name = "attrName")
    @Column(name = "attr_name")
    private String attrName;

    /**
     * 外键，类型id
     */
    @ApiModelProperty(value = "类型编号", name = "catId")
    @Column(name = "cat_id")
    private String catId;

    /**
     * only:输入框(唯一)  many:后台下拉列表/前台单选框
     */

    @ApiModelProperty(value = "属性类型", name = "attrSel",example = "only")
    @Column(name = "attr_sel")
    private String attrSel;

    /**
     * manual:手工录入  list:从列表选择
     */
    @ApiModelProperty(value = "录入方式", name = "attrWrite",example = "manual")
    @Column(name = "attr_write")
    private String attrWrite;

    /**
     * 删除时间标志
     */
    @Column(name = "delete_time")
    private Integer deleteTime;

    /**
     * 可选值列表信息,例如颜色：白色,红色,绿色,多个可选值通过逗号分隔
     */
    @ApiModelProperty(value = "可选值列表", name = "attrVals")
    @Column(name = "attr_vals")
    private String attrVals;

    /**
     * 获取主键id
     *
     * @return attr_id - 主键id
     */
    public String getAttrId() {
        return attrId;
    }

    /**
     * 设置主键id
     *
     * @param attrId 主键id
     */
    public void setAttrId(String attrId) {
        this.attrId = attrId;
    }

    /**
     * 获取属性名称
     *
     * @return attr_name - 属性名称
     */
    public String getAttrName() {
        return attrName;
    }

    /**
     * 设置属性名称
     *
     * @param attrName 属性名称
     */
    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    /**
     * 获取外键，类型id
     *
     * @return cat_id - 外键，类型id
     */
    public String getCatId() {
        return catId;
    }

    /**
     * 设置外键，类型id
     *
     * @param catId 外键，类型id
     */
    public void setCatId(String catId) {
        this.catId = catId;
    }

    /**
     * 获取only:输入框(唯一)  many:后台下拉列表/前台单选框
     *
     * @return attr_sel - only:输入框(唯一)  many:后台下拉列表/前台单选框
     */
    public String getAttrSel() {
        return attrSel;
    }

    /**
     * 设置only:输入框(唯一)  many:后台下拉列表/前台单选框
     *
     * @param attrSel only:输入框(唯一)  many:后台下拉列表/前台单选框
     */
    public void setAttrSel(String attrSel) {
        this.attrSel = attrSel;
    }

    /**
     * 获取manual:手工录入  list:从列表选择
     *
     * @return attr_write - manual:手工录入  list:从列表选择
     */
    public String getAttrWrite() {
        return attrWrite;
    }

    /**
     * 设置manual:手工录入  list:从列表选择
     *
     * @param attrWrite manual:手工录入  list:从列表选择
     */
    public void setAttrWrite(String attrWrite) {
        this.attrWrite = attrWrite;
    }

    /**
     * 获取删除时间标志
     *
     * @return delete_time - 删除时间标志
     */
    public Integer getDeleteTime() {
        return deleteTime;
    }

    /**
     * 设置删除时间标志
     *
     * @param deleteTime 删除时间标志
     */
    public void setDeleteTime(Integer deleteTime) {
        this.deleteTime = deleteTime;
    }

    /**
     * 获取可选值列表信息,例如颜色：白色,红色,绿色,多个可选值通过逗号分隔
     *
     * @return attr_vals - 可选值列表信息,例如颜色：白色,红色,绿色,多个可选值通过逗号分隔
     */
    public String getAttrVals() {
        return attrVals;
    }

    /**
     * 设置可选值列表信息,例如颜色：白色,红色,绿色,多个可选值通过逗号分隔
     *
     * @param attrVals 可选值列表信息,例如颜色：白色,红色,绿色,多个可选值通过逗号分隔
     */
    public void setAttrVals(String attrVals) {
        this.attrVals = attrVals;
    }
}